package org.dromara.bean.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.bean.domain.HisMemberRefund;
import org.dromara.bean.model.HisMemberRefundModel;


/**
 * @Description: 退费管理
 * @Author: jeecg-boot
 * @Date: 2020-08-18
 * @Version: V1.0
 */
@Mapper
public interface BaseMemberRefundMapper extends BaseMapper<HisMemberRefund> {

    /**
     * 分页列表查询
     *
     * @param page
     * @param checkStatus
     * @return
     */
    IPage<HisMemberRefundModel> pageList(Page<HisMemberRefundModel> page, String memberName, String checkStatus, Integer userId);

    /**
     * 根据id
     *
     * @param id
     * @return
     */
    HisMemberRefundModel findById(String id);

    IPage<HisMemberRefundModel> pageListByDoctor(Page<HisMemberRefundModel> page, String memberName, Integer doctorId, String checkStatus);

    IPage<HisMemberRefundModel> pageListByKeyWord(Page<HisMemberRefundModel> page, String memberName, String doctorName, String checkStatus, String orderType);

    HisMemberRefundModel getByOrderIdAndType(Integer orderId, int orderType);

    Integer existByOrderIdAndType(Integer orderId, int orderType);
}
